﻿#include<iostream>
using namespace std;

int main() {
	float start = 0;
	float sum = 0;
	while (start < 1) {
		start += 0.001;
		cout << "start：" << start << endl;
		sum += start;
	}
	cout << "结果为：" << sum << endl;

	cin.get();
}